# 设置交叉编译器
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CUST_CROSS_TOOL_CHAIN_PATH "/opt/linux/x86-arm/aarch64-v01c01-linux-musl-gcc/bin")
set(CMAKE_C_COMPILER "${CUST_CROSS_TOOL_CHAIN_PATH}/aarch64-v01c01-linux-musl-gcc")
set(CMAKE_CXX_COMPILER "${CUST_CROSS_TOOL_CHAIN_PATH}/aarch64-v01c01-linux-musl-g++")
set(CUST_GDB_EXECUTABLE "${CUST_CROSS_TOOL_CHAIN_PATH}/aarch64-v01c01-linux-musl-gdb")